package com.smfx.yxt.view;

import java.util.Date;

import com.smfx.yxt.common.enums.WorkApprovalStatus;
import com.smfx.yxt.utils.DateUtil;

public class SchoolBusApprovalView {
	
	    private Integer id;
	    
	    private String depart;
	    
	    private String applyer;

	    private Integer applyerId;

	    private String approver;

	    private Integer approverId;

	    private String ccList;

	    private String approvalType;
	    
	    private String approvalStatus;
	    
	    private String rejectReason;
	    
	    private Date applyTime;

	    private Date approvalTime;
	  	//用车事由
	  	private String useCarReason;
	  	//人数
	  	private Integer number;
	  	//目的地
	  	private String destination;
	  	//开始时间
	  	private Date startTime;
	  	//结束时间
	  	private Date endTime;
	  	//备注
	  	private String remark;
	  	
	  	private String approvalStatusText;
	  	
	  	private String applyTimeText;

	    private String approvalTimeText;
	    
	    private String startTimeText;
	  	//结束时间
	  	private String endTimeText;
	  	

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getDepart() {
			return depart;
		}

		public void setDepart(String depart) {
			this.depart = depart;
		}

		public String getApplyer() {
			return applyer;
		}

		public void setApplyer(String applyer) {
			this.applyer = applyer;
		}

		public Integer getApplyerId() {
			return applyerId;
		}

		public void setApplyerId(Integer applyerId) {
			this.applyerId = applyerId;
		}

		public String getApprover() {
			return approver;
		}

		public void setApprover(String approver) {
			this.approver = approver;
		}

		public Integer getApproverId() {
			return approverId;
		}

		public void setApproverId(Integer approverId) {
			this.approverId = approverId;
		}

		public String getCcList() {
			return ccList;
		}

		public void setCcList(String ccList) {
			this.ccList = ccList;
		}

		public String getApprovalType() {
			return approvalType;
		}

		public void setApprovalType(String approvalType) {
			this.approvalType = approvalType;
		}

		public String getApprovalStatus() {
			return approvalStatus;
		}

		public void setApprovalStatus(String approvalStatus) {
			this.approvalStatus = approvalStatus;
			approvalStatusText  = WorkApprovalStatus.getDesc(approvalStatus);
		}

		public String getRejectReason() {
			return rejectReason;
		}

		public void setRejectReason(String rejectReason) {
			this.rejectReason = rejectReason;
		}

		public Date getApplyTime() {
			return applyTime;
		}

		public void setApplyTime(Date applyTime) {
			this.applyTime = applyTime;
			if(applyTime != null)
			   applyTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, applyTime);
		}

		public Date getApprovalTime() {
			return approvalTime;
		}

		public void setApprovalTime(Date approvalTime) {
			this.approvalTime = approvalTime;
			if(approvalTime != null)
			approvalTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, approvalTime);
		}

		public String getUseCarReason() {
			return useCarReason;
		}

		public void setUseCarReason(String useCarReason) {
			this.useCarReason = useCarReason;
		}

		public Integer getNumber() {
			return number;
		}

		public void setNumber(Integer number) {
			this.number = number;
		}

		public String getDestination() {
			return destination;
		}

		public void setDestination(String destination) {
			this.destination = destination;
		}

		public Date getStartTime() {
			return startTime;
		}

		public void setStartTime(Date startTime) {
			this.startTime = startTime;
			if(startTime != null)
			startTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, startTime);
		}

		public Date getEndTime() {
			return endTime;
		}

		public void setEndTime(Date endTime) {
			this.endTime = endTime;
			if(endTime != null)
			endTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, endTime);
		}

		public String getRemark() {
			return remark;
		}

		public void setRemark(String remark) {
			this.remark = remark;
		}

		public String getApprovalStatusText() {
			return approvalStatusText;
		}

		public void setApprovalStatusText(String approvalStatusText) {
			this.approvalStatusText = approvalStatusText;
		}

		public String getApplyTimeText() {
			return applyTimeText;
		}

		public void setApplyTimeText(String applyTimeText) {
			this.applyTimeText = applyTimeText;
		}

		public String getApprovalTimeText() {
			return approvalTimeText;
		}

		public void setApprovalTimeText(String approvalTimeText) {
			this.approvalTimeText = approvalTimeText;
		}

		public String getStartTimeText() {
			return startTimeText;
		}

		public void setStartTimeText(String startTimeText) {
			this.startTimeText = startTimeText;
		}

		public String getEndTimeText() {
			return endTimeText;
		}

		public void setEndTimeText(String endTimeText) {
			this.endTimeText = endTimeText;
		}
		
}
